<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
  <script type="text/javascript">
    function fun(a, b, c) {

			for (let i = 0; i < arguments.length; i++) {
				console.log(arguments[i]);
			}

    	return a + b + c;
		}

		fun(2, 3, 4,5);     // 2 3 4 5

  </script>
</head>
<body>

</body>
</html>
